python-six: rename PKG_NAME to python-six, and adapt unpack cmd for build
authorAlexandru Ardelean <[email protected]>
Sun, 18 Jun 2017 17:17:11 +0000 (20:17 +0300)
committerAlexandru Ardelean <[email protected]>
Thu, 29 Jun 2017 10:48:42 +0000 (13:48 +0300)
OVS has PKG_BUILD_DEPENDS:=python-six/host as dep.
But that doesn't seem to work, since the PKG_NAME:=six

So, this change renames the PKG_NAME to python-six, to
make it clear it's Python package.

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python/python-six/Makefile

index 6e4259d3052e0f592d94c7b8ede44d4ecb5f8e7d..24efe874ee05c76efb5600a076f6de4b83ce8c36 100644 (file)
@@ -7,17 +7,19 @@
 
 include $(TOPDIR)/rules.mk
 
-PKG_NAME:=six
+PKG_NAME:=python-six
 PKG_VERSION:=1.10.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=six-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six
 PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55
 
 HOST_BUILD_DEPENDS:=python/host
 PKG_BUILD_DEPENDS:=python
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <[email protected]>
@@ -26,6 +28,9 @@ include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 $(call include_mk, python-package.mk)
 
+PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+
 define Package/python-six
        SECTION:=lang
        CATEGORY:=Languages